﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Text;
using Portal.Web.Global;
using Portal.Web.Framework;
using Portal.Core;
using Portal.AssetTn.Model;
using System.Collections.ObjectModel;


namespace Portal.Gui.Web.WebParts.AssetTn
{
    public class AssetTN_SearchOther : WebPart
    {
        public override string WebPartId
        {
            get
            {
                return "AssetTN.SearchOther";
            }
        }


        public override WebPartServiceCls WebPartService
        {
            get
            {
                return AssetUtility.WebPartService;
            }
        }

        public override string Title
        {
            get
            {
                return "Tìm kiếm sổ kiểm kê bước đầu";
            }
        }


        public override string RenderWebPart(LoadParamCls loadParamCls)
        {
            try
            {
                AjaxPro.Utility.RegisterTypeForAjax(typeof(AssetTN_SearchOther));
                string Html = AssetRenderSearchBll.Render(SessionId, "AdvSearch", WebPartId, loadParamCls.SiteId, "other", Title, "assetother.png", false);
                return Html;
            }
            catch (Exception ex)
            {
                return ex.Message.ToString();
            }
        }


        public override string JumpUrl
        {
            get
            {
                return "Go.aspx";
            }
        }

        public override void RegAjaxPro(System.Web.UI.Page ActivePage)
        {
            AjaxPro.Utility.RegisterTypeForAjax(typeof(AssetRenderSearchBll), ActivePage);
        }
    }
}
